package io.zhengsh.juc._3queue;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

public class LinkedBlockingQueueTest {

    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<Object> blockingQueue = new LinkedBlockingQueue<>(1024);
        blockingQueue.put(new Object());
        Object obj = blockingQueue.poll();
        System.out.println(obj);
    }
}